import request from "@/utils/request";
export const getListAPi = (params?: any) => {
  return request({
    url: "/study/video/list",
    method: "get",
    params,
  });
};

export const getInfoApi = (id: number) => {
  return request({
    url: "/study/video/" + id,
    method: "get",
  });
};

export const addApi = (data: any) => {
  return request({
    url: "/study/video/add",
    method: "post",
    data,
  });
};
export const editApi = (data: any) => {
  return request({
    url: "/study/video/edit/",
    method: "put",
    data,
  });
};
export const delApi = (id: number) => {
  return request({
    url: "/study/video/" + id,
    method: "delete",
  });
};
